﻿using CleanArchitecture.Core.SharedKernel;

namespace CleanArchitecture.Core.Interfaces
{
    public interface IDomainEventDispatcher
    {
        /// <summary>
        /// 消息驱动统一调用接口，实现事务驱动一致性解偶
        /// </summary>
        /// <typeparam name="BaseDomainEvent"></typeparam>
        /// <param name="domainEvent"></param>
        void Dispatch<T>(T domainEvent) where T : BaseDomainEvent;
    }
}